import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import App from './App.vue'
import router from "./router"
import * as Icons from '@element-plus/icons-vue'
import {createPinia} from 'pinia'
const app = createApp(App)
const pinia = createPinia()
app.use(pinia)
app.use(router)
app.use(ElementPlus)
app.mount('#app')

Object.keys(Icons).forEach(key => {
    app.component(key, Icons[key as keyof typeof Icons])
  })